﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;
using Repository;

namespace Manager
{
    public class UserManager : IUserManager
    {
        public IRepository<User> UserRepository { get; set; }

        public object Save(User entity)
        {
            return this.UserRepository.Save(entity);
        }

        public void Delete(User entity)
        {
            this.UserRepository.Delete(entity);
        }

        public User Get(object id)
        {
            return this.UserRepository.Get(id);
        }

        public void Update(User entity)
        {
            this.UserRepository.Update(entity);
        }
    }
}
